export default function request(url) {
  return new Promise((resolve) => {
    fetch(url)
      .then((resp) => resp.json())
      .then((data) => {
        resolve(data);
      });
  });
}